<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>视频和音频内容</title>
    <style>
        body {
            display: flex;
            flex-direction: column;
        }

        .box {
            flex: 1;
            margin: 20px;
        }
    </style>
</head>

<body>
    <!-- 普通播放 -->
    <div class="box">
        <!-- autoplay: 自动播放 -->
        <!-- loop: 循环播放 -->
        <!-- muted: 默认关闭声音 -->
        <!-- poster: 片头图像URL -->
        <!-- preload: 缓存文件 默认: metadata -->
        <video src="./static/video/1.mp4" controls>
            <p>你的浏览器不支持 HTML5 视频。可点击<a href="rabbit320.mp4">此链接</a>观看</p>
        </video>
    </div>

    <!-- 多源播放 防止浏览器不兼容-->
    <div class="box">
        <video width="400" height="300" controls>
            <source src="./static/video/1.mp4" type="video/mp4">
            <source src="./static/video/1.mp4" type="video/mp4">
        </video>
    </div>
    <!-- 音频播放 -->
    <div class="box">
        <audio src="./static/video/1.mp4" controls>
        </audio>
    </div>


</body>

</html>